<?
include('../db/koneksi.php');
$result = mysql_query("SHOW COLUMNS FROM $nm_tbl");
$judul_atas=split('_',strtolower($nm_tbl));
$jum_atas=count($judul_atas);
$title='$Insert';
for($a=0;$a<$jum_atas;$a++){
$title=$title.''.ucwords($judul_atas[$a]);
}

?>
<hr>

<code>

&lt;?<br>
include('../db/koneksi.php');<br>
//==========================Hapus table================================<br>
<?
if (mysql_num_rows($result) > 0) {
    while ($row = mysql_fetch_assoc($result)) { 
	$yap=split('_',strtolower($row['Field']));
	$jum=count($yap);
	$judul=null;
	for($i=0;$i<$jum;$i++){
	$judul=$judul.' '.ucwords($yap[$i]);
	}

	?>
		<?=$title?>['<?=$row['Field'];?>']=$<?=strtolower($row['Field']);?>;<br>
       
  <?  }
}
 
?>
delete_table('<?=$nm_tbl?>','<?=$title?>');<br>
//============================= END ============================<br>

?&gt;


</code>